package com.vhall.component.entity.pay.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class PayParamVO implements Serializable {
    @NotBlank(message = "app_id参数异常")
    @Length(min = 1, max = 32, message = "app_id长度为1-32位")
    @ParamName("app_id")
    @JsonProperty("app_id")
    private String appId;

    private Long timestamp;

    @ParamName("nonce_str")
    @JsonProperty("nonce_str")
    private String nonceStr;

    @Length(min = 1, max = 32, message = "长度为1-32位")
    private String sign;
}
